package cn.itsource.hrm.client;

import cn.itsource.hrm.doc.CourseDoc;
import cn.itsource.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author jinhui
 * @version V1.0.0
 * @date 2020/6/3
 */
@FeignClient(name ="ES-SERVICE",path = "/course")
public interface CourseEsClient {
    @PostMapping("/save")
    AjaxResult save(@RequestBody CourseDoc courseDoc);

    @PostMapping("/saveBatch")
    AjaxResult saveBatch(@RequestBody List<CourseDoc> courseDocs);

    @DeleteMapping("/delete")
     AjaxResult delete(@RequestBody Long id);

    @PostMapping("/deleteBatch")
   AjaxResult deleteBatch(@RequestBody List<Long> ids);
}

